home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / src_1218.zip / FTPCLI.H < prev    next >
Text File  |  1990-11-10  |  1KB  |  46 lines

  1. #ifndef    _FTPCLI_H
  2. #define    _FTPCLI_H
  3.  
  4. #include <stdio.h>
  5.  
  6. #ifndef    _FTP_H
  7. #include "ftp.h"
  8. #endif
  9.  
  10. #ifndef _SESSION_H
  11. #include "session.h"
  12. #endif
  13.  
  14. #define    LINELEN    256        /* Length of user command buffer */
  15.  
  16. #define CTLZ    26        /* EOF for CP/M systems */
  17.  
  18. /* Per-session FTP client control block */
  19. struct ftpcli {
  20.     int control;        /* Control socket */
  21.     int data;        /* Data socket */
  22.  
  23.     char state;
  24. #define    COMMAND_STATE    0    /* Awaiting user command */
  25. #define    SENDING_STATE    1    /* Sending data to user */
  26. #define    RECEIVING_STATE    2    /* Storing data from user */
  27.  
  28.     int16 verbose;        /* Transfer verbosity level */
  29. #define    V_QUIET        0    /* Error messages only */
  30. #define    V_SHORT        1    /* Final message only */
  31. #define    V_NORMAL    2    /* display control messages */
  32. #define    V_HASH        3    /* control messages, hash marks */
  33.  
  34.     int batch;        /* Command batching flag */
  35.     int abort;        /* Aborted transfer flag */
  36.     char type;        /* Transfer type */
  37.     char typesent;        /* Last type command sent to server */
  38.     int logbsize;        /* Logical byte size for logical type */
  39.     FILE *fp;        /* File descriptor being transferred */
  40.  
  41.     struct session *session;
  42. };
  43. #define    NULLFTP    (struct ftpcli *)0
  44.  
  45. #endif    /* _FTPCLI_H */
  46.